import { UPDATEPAGEJOBCOLLECTION } from '../types/pagejobcollection'
import { handleActions } from 'redux-actions'

const Schema = {
  showEmpty: false,
  requestOverFirst: false,
  networkerror: false,
  collectionjobs: [{}, {}, {}, {}, {}, {}, {}, {}, {}]
}

export default handleActions(
  {
    [UPDATEPAGEJOBCOLLECTION](state, action) {
      return {
        ...state,
        ...action.payload
      }
    }
  },
  Schema
)
